<template>
    <div class="category">
        <div class="header">
            <span class="title">商品类章</span>
        </div>
        <div class="body">
            <div class="item" v-for="(item) in 5" :key="item">
                <div class="section">第84章（共<span style="color: blue;">16</span>条）</div>
                <div class="content">
                    <p>技反应堆，过滤泵，机照，机械器具机器要件技反应堆，过滤泵，机照，机械器具机器要件</p>
                </div>
            </div>
        </div>
    </div>
</template>
<script setup lang="ts" name="CategoryCard">

</script>
<style scoped lang="scss">
.category {
    padding: 6px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    .header {
        padding-left: 10px;
        height: 18px;
        line-height: 18px;
        position: relative;
        &::before {
            position: absolute;
            content: "";
            display: block;
            left: 0px;
            top: 50%;
            transform: translateY(-50%);
            background: rgb(21, 119, 247);
            height: 70%;
            width: 2px;
            border-radius: 1px;
        }

        .title {
            color: rgb(21, 119, 247);
            font-size: 12px;
        }
    }

    .body {
        width: 100%;
        flex: 1;
        padding-top: 3px;
        overflow-y: auto;
        overflow-x: hidden;

        .item {
            border-radius: 1px;
            padding: 2px;
            width: inherit;
            padding: 6px;

            &:hover {
                background: #cbdcfc;
                cursor: pointer;
            }

            .section {
                font-size: 12px;
                padding: 3px 0;
            }

            .content {
                width: 100%;
                display: flex;
                flex-direction: row;
            }
        }
    }
}
</style>